package winOrDie.Net.Server;

import java.util.EventObject;

public class WoD_Server_ControlChannel_Event extends EventObject {

	/**
	 * WoD events
	 */
	public static final int JOIN_GAME = 1;
	public static final int SELECT_SIDE = 2;
	public static final int SELECT_ROL = 3;
	public static final int CHAT = 4;
	public static final int LEAVE_GAME = 5;
	public static final int READY_TO_GO = 6;
	public static final int FORCE_START = 7;
	public static final int CHANGE_MAP = 8;
	public static final int CHANGE_TIME = 9;
	
	/**
	 * P2P Layer events
	 */

	public static final int P2P_NEW_NODE = 51;
	public static final int P2P_NODE_DOWN = 52;
	
	public static final int CLIENT_ERROR = 99;
	
	private int event_Type = -1;
	private Object data = null;
	private WoD_Server_Client woDServerClient = null;
	
	
	public int getEvent_Type() {
		return event_Type;
	}

	public void setEvent_Type(int eventType) {
		event_Type = eventType;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public WoD_Server_Client getWoDServerClient() {
		return woDServerClient;
	}

	public void setWoDServerClient(WoD_Server_Client woDServerClient) {
		this.woDServerClient = woDServerClient;
	}

	public WoD_Server_ControlChannel_Event(Object source) {
		super(source);
	}
	
}
